import Vue from 'vue'
import Router from 'vue-router'
import Home from '@/pages/home/Home'
import List from '@/pages/list/List'
import Detail from '@/pages/detail/Detail'
import Personal from '@/pages/personal/Personal'
import Search from '@/pages/search/Search'
import Category from '@/pages/category/Category'
import Find from '@/pages/find/Find'
Vue.use(Router)

export default new Router({
  routes: [
    {
      path: '/',
      name: 'Home',
      component: Home
    },
    {
      path: '/search',
      name: 'Search',
      component: Search
    },
    {
      path: '/find',
      name: 'Find',
      component: Find
    },
    {
      path: '/category',
      name: 'Category',
      component: Category
    },
    {
      path: '/list',
      name: 'List',
      component: List
    },
    {
      path: '/detail/:id',
      name: 'Detail',
      component: Detail
    },{
      path: '/personal',
      name: 'Personal',
      component: Personal
    }
  ]
})
